package com.yuntuzhilian.chapter4;

/**
 * @author MrWang-shuizhishuiheshui
 * @description 主线程 main
 */
public class Demo1 {
    public static void main(String[] args) {
        //获取当前线程
        Thread mThread = Thread.currentThread();
        //获取线程名
        System.out.println(mThread.getName());
        //修改线程名
        mThread.setName("主线程-");
        System.out.println(mThread.getName());


    }
}
